#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	FILE* pr = fopen("date.txt", "r");
	if (pr == NULL)
	{
		perror(fopen);
		return 1;
	}
	FILE* pw = fopen("date_copy.txt", "w");
	if (pw == NULL)
	{
		perror(fopen);
		return 1;
	}
	char ch;
	while ((ch = fgetc(pr)) != EOF)
	{
		fputc(ch, pw);
	}
	fclose(pr);
	fclose(pw);
	pr = pw = NULL;
	return 0;
}